@using BlazorApp.Pages.Cluster
@using BlazorApp.Service.k8s
@using BlazorApp.Utils.Prometheus.Models.Interfaces
@using k8s.Models
@inherits BlazorApp.Pages.Common.DrawerPageBase<V1Node>

<Tabs Type="@TabType.Card">
<TabPane Key="1" Tab=@L["CPU"]>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["machine_cpu_sockets"]
                                MetricName="machine_cpu_sockets">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["machine_cpu_physical_cores"]
                                MetricName="machine_cpu_physical_cores">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["machine_cpu_cores"]
                                MetricName="machine_cpu_cores">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_cpu_load_average_10s"]
                                MetricName="container_cpu_load_average_10s"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_cpu_system_seconds_total"]
                                MetricName="container_cpu_system_seconds_total"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })"
                                Unit="seconds">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_cpu_usage_seconds_total"]
                                MetricName="container_cpu_usage_seconds_total"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })"
                                Unit="seconds">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_cpu_user_seconds_total"]
                                MetricName="container_cpu_user_seconds_total"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })"
                                Unit="seconds">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["machine_scrape_error"]
                                MetricName="machine_scrape_error">
    </MetricsCounterGaugeSumView>
</TabPane>
<TabPane Key="2" Tab=@L["Memory"]>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["machine_memory_bytes"]
                                MetricName="machine_memory_bytes" Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_memory_cache"]
                                MetricName="container_memory_cache" Unit="bytes"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_memory_failcnt"]
                                MetricName="container_memory_failcnt"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_memory_failures_total"]
                                MetricName="container_memory_failures_total"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_memory_mapped_file"]
                                MetricName="container_memory_mapped_file"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_memory_max_usage_bytes"]
                                MetricName="container_memory_max_usage_bytes"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })"
                                Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_memory_rss"]
                                MetricName="container_memory_rss" Unit="bytes"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_memory_swap"]
                                MetricName="container_memory_swap" Unit="bytes"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_memory_usage_bytes"]
                                MetricName="container_memory_usage_bytes"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })"
                                Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_memory_working_set_bytes"]
                                MetricName="container_memory_working_set_bytes"
                                MultipleGroupBy="@(new List<string> { "pod", "namespace" })"
                                Unit="bytes">
    </MetricsCounterGaugeSumView>

</TabPane>
<TabPane Key="3" Tab=@L["Disk"]>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["machine_nvm_capacity"]
                                MetricName="machine_nvm_capacity" Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["machine_nvm_avg_power_budget_watts"]
                                MetricName="machine_nvm_avg_power_budget_watts">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_blkio_device_usage_total"]
                                MetricName="container_blkio_device_usage_total"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace", "operation" })"
                                Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_file_descriptors"]
                                MetricName="container_file_descriptors"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_inodes_free"]
                                MetricName="container_fs_inodes_free"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">

    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_inodes_total"]
                                MetricName="container_fs_inodes_total"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">

    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_io_current"]
                                MetricName="container_fs_io_current"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">

    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_io_time_seconds_total"]
                                MetricName="container_fs_io_time_seconds_total"
                                Unit="seconds" MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">

    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics"
                                Title=@L["container_fs_io_time_weighted_seconds_total"]
                                MetricName="container_fs_io_time_weighted_seconds_total"
                                Unit="seconds" MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">

    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_limit_bytes"]
                                MetricName="container_fs_limit_bytes" Unit="bytes"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">

    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_read_seconds_total"]
                                MetricName="container_fs_read_seconds_total"
                                Unit="seconds" MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">

    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_reads_bytes_total"]
                                MetricName="container_fs_reads_bytes_total"
                                Unit="bytes" MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">

    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_reads_merged_total"]
                                MetricName="container_fs_reads_merged_total"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_reads_total"]
                                MetricName="container_fs_reads_total"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_sector_reads_total"]
                                MetricName="container_fs_sector_reads_total"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_sector_writes_total"]
                                MetricName="container_fs_sector_writes_total"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_usage_bytes"]
                                MetricName="container_fs_usage_bytes" Unit="bytes"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_write_seconds_total"]
                                MetricName="container_fs_write_seconds_total"
                                Unit="seconds">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_writes_bytes_total"]
                                MetricName="container_fs_writes_bytes_total"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })"
                                Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_writes_merged_total"]
                                MetricName="container_fs_writes_merged_total"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_fs_writes_total"]
                                MetricName="container_fs_writes_total"
                                MultipleGroupBy="@(new List<string> { "device", "pod", "namespace" })"
                                Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetircsHistogramTotalAvgView AllMetrics="@Metrics"
                                  Title=@L["storage_operation_duration_seconds"]
                                  MetricName="storage_operation_duration_seconds" Unit="seconds"
                                  MultipleGroupBy="@(new List<string> { "volume_plugin", "operation_name" })">
    </MetircsHistogramTotalAvgView>

</TabPane>
<TabPane Key="4" Tab=@L["Network"]>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_network_receive_bytes_total"]
                                MetricName="container_network_receive_bytes_total"
                                MultipleGroupBy="@(new List<string> { "interface" })"
                                Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_network_receive_errors_total"]
                                MetricName="container_network_receive_errors_total">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics"
                                Title=@L["container_network_receive_packets_dropped_total"]
                                MetricName="container_network_receive_packets_dropped_total">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_network_receive_packets_total"]
                                MultipleGroupBy="@(new List<string> { "interface" })"
                                MetricName="container_network_receive_packets_total">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_network_transmit_bytes_total"]
                                MultipleGroupBy="@(new List<string> { "interface" })"
                                MetricName="container_network_transmit_bytes_total"
                                Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_network_transmit_errors_total"]
                                MetricName="container_network_transmit_errors_total">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics"
                                Title=@L["container_network_transmit_packets_dropped_total"]
                                MetricName="container_network_transmit_packets_dropped_total">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_network_transmit_packets_total"]
                                MultipleGroupBy="@(new List<string> { "interface" })"
                                MetricName="container_network_transmit_packets_total">
    </MetricsCounterGaugeSumView>

</TabPane>
<TabPane Key="5" Tab=@L["Process"]>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["process_cpu_seconds_total"]
                                MetricName="process_cpu_seconds_total" Unit="seconds">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["process_open_fds"]
                                MetricName="process_open_fds">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["process_max_fds"]
                                MetricName="process_max_fds">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["process_resident_memory_bytes"]
                                MetricName="process_resident_memory_bytes" Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["process_virtual_memory_bytes"]
                                MetricName="process_virtual_memory_bytes" Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["process_virtual_memory_max_bytes"]
                                MetricName="process_virtual_memory_max_bytes" Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_ulimits_soft"]
                                MetricName="container_ulimits_soft">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_oom_events_total"]
                                MetricName="container_oom_events_total">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_processes"]
                                MetricName="container_processes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_scrape_error"]
                                MetricName="container_scrape_error">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_sockets"]
                                MetricName="container_sockets">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_spec_cpu_period"]
                                MetricName="container_spec_cpu_period" Unit="millicores"
                                MultipleGroupBy="@(new List<string> { "namespace", "pod" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_spec_cpu_quota"]
                                MetricName="container_spec_cpu_quota" Unit="millicores"
                                MultipleGroupBy="@(new List<string> { "namespace", "pod" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_spec_cpu_shares"]
                                MetricName="container_spec_cpu_shares" Unit="millicores"
                                MultipleGroupBy="@(new List<string> { "namespace", "pod" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_spec_memory_limit_bytes"]
                                MetricName="container_spec_memory_limit_bytes"
                                Unit="bytes"
                                MultipleGroupBy="@(new List<string> { "namespace", "pod" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics"
                                Title=@L["container_spec_memory_reservation_limit_bytes"]
                                MetricName="container_spec_memory_reservation_limit_bytes"
                                Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_spec_memory_swap_limit_bytes"]
                                MetricName="container_spec_memory_swap_limit_bytes"
                                Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_tasks_state"]
                                MetricName="container_tasks_state">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_threads"]
                                MetricName="container_threads"
                                MultipleGroupBy="@(new List<string> { "namespace", "pod" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@CAdvisorMetrics" Title=@L["container_threads_max"]
                                MetricName="container_threads_max"
                                MultipleGroupBy="@(new List<string> { "namespace", "pod" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["go_goroutines"]
                                MetricName="go_goroutines">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["go_threads"]
                                MetricName="go_threads">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["go_gc_heap_allocs_bytes_total"]
                                MetricName="go_gc_heap_allocs_bytes_total" Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetircsHistogramTotalAvgView AllMetrics="@Metrics" Title=@L["go_gc_pauses_seconds"]
                                  MetricName="go_gc_pauses_seconds"
                                  Unit="seconds">
    </MetircsHistogramTotalAvgView>


    <MetircsHistogramTotalAvgView AllMetrics="@Metrics" Title=@L["go_gc_duration_seconds"]
                                  MetricName="go_gc_duration_seconds"
                                  Unit="seconds">
    </MetircsHistogramTotalAvgView>
    <MetircsHistogramTotalAvgView AllMetrics="@Metrics" Title=@L["go_gc_heap_allocs_by_size_bytes"]
                                  MetricName="go_gc_heap_allocs_by_size_bytes"
                                  Unit="bytes">
    </MetircsHistogramTotalAvgView>
    <MetircsHistogramTotalAvgView AllMetrics="@Metrics" Title=@L["go_sched_latencies_seconds"]
                                  MetricName="go_sched_latencies_seconds"
                                  Unit="seconds">
    </MetircsHistogramTotalAvgView>

</TabPane>
<TabPane Key="6" Tab=@L["Pod"]>
    <MetricsCounterGaugeSumView AllMetrics="@ResourceMetrics" Title=@L["node_memory_working_set_bytes"]
                                MetricName="node_memory_working_set_bytes" Unit="bytes">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@ResourceMetrics" Title=@L["pod_memory_working_set_bytes"]
                                MetricName="pod_memory_working_set_bytes" Unit="bytes"
                                MultipleGroupBy="@(new List<string> { "namespace", "pod" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@ResourceMetrics" Title=@L["container_memory_working_set_bytes"]
                                MetricName="container_memory_working_set_bytes" Unit="bytes"
                                MultipleGroupBy="@(new List<string> { "namespace", "pod", "container" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@ResourceMetrics"
                                Title=@L["node_cpu_usage_seconds_total"]
                                MetricName="node_cpu_usage_seconds_total" Unit="seconds">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@ResourceMetrics"
                                Title=@L["pod_cpu_usage_seconds_total"]
                                MetricName="pod_cpu_usage_seconds_total" Unit="seconds"
                                MultipleGroupBy="@(new List<string> { "namespace", "pod" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@ResourceMetrics" Title=@L["container_cpu_usage_seconds_total"]
                                MetricName="container_cpu_usage_seconds_total"
                                Unit="seconds">
    </MetricsCounterGaugeSumView>

    <MetricsCounterGaugeSumView AllMetrics="@Metrics"
                                Title=@L["kubelet_container_log_filesystem_used_bytes"]
                                MetricName="kubelet_container_log_filesystem_used_bytes" Unit="bytes"
                                MultipleGroupBy="@(new List<string> { "namespace", "pod", "container" })">
    </MetricsCounterGaugeSumView>

</TabPane>
<TabPane Key="7" Tab=@L["Kubelet"]>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["kubelet_mirror_pods"]
                                MetricName="kubelet_mirror_pods">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["kubelet_restarted_pods_total"]
                                MetricName="kubelet_restarted_pods_total">
    </MetricsCounterGaugeSumView>

    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["kubelet_running_pods"]
                                MetricName="kubelet_running_pods">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["kubelet_started_pods_errors_total"]
                                MetricName="kubelet_started_pods_errors_total">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics"
                                Title=@L["kubelet_active_pods"]
                                MetricName="kubelet_active_pods"
                                MultipleGroupBy="@(new List<string> { "static" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics"
                                Title=@L["kubelet_runtime_operations_total"]
                                MetricName="kubelet_runtime_operations_total"
                                MultipleGroupBy="@(new List<string> { "operation_type" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics"
                                Title=@L["kubelet_running_containers"]
                                MetricName="kubelet_running_containers"
                                MultipleGroupBy="@(new List<string> { "container_state" })">
    </MetricsCounterGaugeSumView>

    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["kubelet_started_containers_total"]
                                MetricName="kubelet_started_containers_total">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics"
                                Title=@L["kubelet_started_containers_errors_total"]
                                MetricName="kubelet_started_containers_errors_total"
                                MultipleGroupBy="@(new List<string> { "code" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics"
                                Title=@L["kubelet_working_pods"]
                                MetricName="kubelet_working_pods"
                                MultipleGroupBy="@(new List<string> { "config", "lifecycle", "static" })">
    </MetricsCounterGaugeSumView>
    <MetricsCounterGaugeSumView AllMetrics="@Metrics" Title=@L["kubelet_managed_ephemeral_containers"]
                                MetricName="kubelet_managed_ephemeral_containers">
    </MetricsCounterGaugeSumView>

    <MetircsHistogramTotalAvgView AllMetrics="@Metrics"
                                  Title=@L["kubelet_pod_status_sync_duration_seconds"]
                                  MetricName="kubelet_pod_status_sync_duration_seconds" Unit="seconds">
    </MetircsHistogramTotalAvgView>
    <MetircsHistogramTotalAvgView AllMetrics="@Metrics"
                                  Title=@L["kubelet_pod_worker_duration_seconds"]
                                  MetricName="kubelet_pod_worker_duration_seconds" Unit="seconds">
    </MetircsHistogramTotalAvgView>
    <MetircsHistogramTotalAvgView AllMetrics="@Metrics"
                                  Title=@L["kubelet_runtime_operations_duration_seconds"]
                                  MetricName="kubelet_runtime_operations_duration_seconds" Unit="seconds">
    </MetircsHistogramTotalAvgView>
    <MetircsHistogramTotalAvgView AllMetrics="@Metrics"
                                  Title=@L["kubelet_pod_start_duration_seconds"]
                                  MetricName="kubelet_pod_start_duration_seconds" Unit="seconds">
    </MetircsHistogramTotalAvgView>

    <MetircsHistogramTotalAvgView AllMetrics="@Metrics"
                                  Title=@L["kubelet_cgroup_manager_duration_seconds"]
                                  MetricName="kubelet_cgroup_manager_duration_seconds"
                                  MultipleGroupBy="@(new List<string> { "operation_type" })"
                                  Unit="seconds">
    </MetircsHistogramTotalAvgView>

</TabPane>
</Tabs>

@code {
    [Parameter] public V1Node Node { get; set; }

    [Inject] INodeService NodeService { get; set; }
    private IList<IMetric> Metrics { get; set; }
    private IList<IMetric> CAdvisorMetrics { get; set; }
    private IList<IMetric> ResourceMetrics { get; set; }

    protected override async Task OnInitializedAsync()
    {
        Node = Options;
        Metrics = await NodeService.GetMetrics(Node.Name());
        CAdvisorMetrics = await NodeService.GetCadvisorMetrics(Node.Name());
        ResourceMetrics = await NodeService.GetResourceMetrics(Node.Name());

        await base.OnInitializedAsync();
    }


}
